package com.devframe.sysbase.model;

import java.util.ArrayList;
import java.util.List;

import com.devframe.sysbase.model.base.BaseTSysMenu;




public class TSysMenu extends BaseTSysMenu {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public TSysMenu () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public TSysMenu (java.lang.String menuCode) {
		super(menuCode);
	}

/*[CONSTRUCTOR MARKER END]*/

	/**
	 * getParentMenus
	 * @return List 所有上级菜单集合
	 * 
	 */
	public List getParentMenus(){
	    List list = new ArrayList();
	    TSysMenu parent = this.getParentMenu();
        while(parent!=null){
            list.add(0,parent);
            parent=parent.getParentMenu();
        }
	    return list;
	}
	
	/**
	 * menuType
	 * 菜单类型:folder,file
	 * 目录和叶子节点
	 */
	private String menuType="file";

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

}